package com.xuyuan.designmode.singleton;

/**
 * 静态内部类实现单例模式
 */
public class Signleton4 {

    private Signleton4() {
    }

    public static Signleton4 getINSTANCE() {
        return Holder.INSTANCE;
    }

    private static class Holder {
        private static Signleton4 INSTANCE = new Signleton4();
    }
}